var imageSettings = {
    // Backend Settings
    upload_url: base_url + "upload.php",
    post_params: {
        "PHPSESSID": "<?php echo session_id(); ?>",
        "folder": "/uploads/images/"
    },
    // File Upload Settings
    file_size_limit : "2 MB",	// 2MB
    file_types : "*.jpg; *.gif; *.png",
    file_types_description : "Images files",
    // Event Handler Settings - these functions as defined in Handlers.js
    file_queue_error_handler : fileQueueError,
    file_dialog_complete_handler : fileDialogComplete,
    upload_error_handler : uploadError,
    upload_success_handler : uploadSuccess,
    upload_complete_handler : uploadComplete,
    // Button Settings
    button_image_url : st_url + "/backend/js/SWFUpload/images/SmallSpyGlassWithTransperancy_17x18.png",
    button_placeholder_id : "spanButtonPlaceholder",
    button_width: 180, 
    button_height: 18,
    button_text : '<span class="button">Chọn ảnh <span class="buttonSmall">(2 MB Max)</span></span>',
    button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; color: #FFFFFF; } .buttonSmall { font-size: 10pt; }',
    button_text_top_padding: 0, 
    button_text_left_padding: 18, 
    button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT, 
    button_cursor: SWFUpload.CURSOR.HAND,
    button_action: SWFUpload.BUTTON_ACTION.SELECT_FILE,
    // Flash Settings
    flash_url : st_url + "/backend/js/SWFUpload/swfupload.swf",
    flash9_url : st_url + "/backend/js/SWFUpload/swfupload_fp9.swf",
    // Custom Settings
    custom_settings : {
        upload_target : "divFileProgressContainer",
        input_target: 'thumbnail_url'
    },
    // Debug Settings
    debug: false
};
    
var videoSettings = {
    // Backend Settings
    upload_url: base_url + "uploadfiles.php",
    post_params: {
        "PHPSESSID": "<?php echo session_id(); ?>",
        "folder": "/uploads/videos/"
    },
    // File Upload Settings
    file_size_limit : "100 MB",	// 100MB
    file_types : "*.mp4; *.flv",
    file_types_description : "Videos files",
    // Event Handler Settings - these functions as defined in VideoHandlers.js
    file_queue_error_handler : fileQueueError,
    file_dialog_complete_handler : fileDialogComplete,
    upload_progress_handler : uploadVideoProgress,
    upload_error_handler : uploadError,
    upload_success_handler : uploadVideoSuccess,
    upload_complete_handler : uploadComplete,
    // Button Settings
    button_image_url : st_url + "/backend/js/SWFUpload/images/SmallSpyGlassWithTransperancy_17x18.png",
    button_placeholder_id : "spanVideoButtonPlaceholder",
    button_width: 180, 
    button_height: 18,
    button_text : '<span class="button">Chọn video <span class="buttonSmall">(100 MB Max)</span></span>',
    button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; color: #FFFFFF; } .buttonSmall { font-size: 10pt; }',
    button_text_top_padding: 0, 
    button_text_left_padding: 18, 
    button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT, 
    button_cursor: SWFUpload.CURSOR.HAND,
    button_action: SWFUpload.BUTTON_ACTION.SELECT_FILE,
    // Flash Settings
    flash_url : st_url + "/backend/js/SWFUpload/swfupload.swf",
    flash9_url : st_url + "/backend/js/SWFUpload/swfupload_fp9.swf",
    // Custom Settings
    custom_settings : {
        progressTarget : "divVideoProgressContainer",
        input_target: 'video_url',
        player_target: 'video_player_target',
        progressDisplay: true
    },
    // Debug Settings
    debug: false
};

var audioSettings = {
    // Backend Settings
    upload_url: base_url + "uploadfiles.php",
    post_params: {
        "PHPSESSID": "<?php echo session_id(); ?>",
        "folder": "/uploads/audios/"
    },
    // File Upload Settings
    file_size_limit : "10 MB",	// 2MB
    file_types : "*.mp3",
    file_types_description : "Audios files",
    // Event Handler Settings - these functions as defined in VideoHandlers.js
    file_queue_error_handler : fileQueueError,
    file_dialog_complete_handler : fileDialogComplete,
    upload_progress_handler : uploadAudioProgress,
    upload_error_handler : uploadError,
    upload_success_handler : uploadAudioSuccess,
    upload_complete_handler : uploadComplete,
    // Button Settings
    button_image_url : st_url + "/backend/js/SWFUpload/images/SmallSpyGlassWithTransperancy_17x18.png",
    button_placeholder_id : "spanAudioButtonPlaceholder",
    button_width: 180, 
    button_height: 18,
    button_text : '<span class="button">Chọn audio <span class="buttonSmall">(10 MB Max)</span></span>',
    button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; color: #FFFFFF; } .buttonSmall { font-size: 10pt; }',
    button_text_top_padding: 0, 
    button_text_left_padding: 18, 
    button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT, 
    button_cursor: SWFUpload.CURSOR.HAND,
    button_action: SWFUpload.BUTTON_ACTION.SELECT_FILE,
    // Flash Settings
    flash_url : st_url + "/backend/js/SWFUpload/swfupload.swf",
    flash9_url : st_url + "/backend/js/SWFUpload/swfupload_fp9.swf",
    // Custom Settings
    custom_settings : {
        progressTarget : "divAudioProgressContainer",
        input_target: 'audio_url',
        player_target: 'audio_player_target',
        progressDisplay: true
    },
    // Debug Settings
    debug: false
};

var fileSettings = {
    // Backend Settings
    upload_url: base_url + "uploadfiles.php",
    post_params: {
        "PHPSESSID": "<?php echo session_id(); ?>",
        "folder": "/uploads/files/"
    },
    // File Upload Settings
    file_size_limit : "10 MB",	// 2MB
    file_types : "*.pdf; *.doc; *.docx;",
    file_types_description : "Document files",
    // Event Handler Settings - these functions as defined in VideoHandlers.js
    file_queue_error_handler : fileQueueError,
    file_dialog_complete_handler : fileDialogComplete,
    upload_progress_handler : uploadFileProgress,
    upload_error_handler : uploadError,
    upload_success_handler : uploadFileSuccess,
    upload_complete_handler : uploadComplete,
    // Button Settings
    button_image_url : st_url + "/backend/js/SWFUpload/images/SmallSpyGlassWithTransperancy_17x18.png",
    button_placeholder_id : "spanFileButtonPlaceholder",
    button_width: 180, 
    button_height: 18,
    button_text : '<span class="button">Chọn Files <span class="buttonSmall">(10 MB Max)</span></span>',
    button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; color: #FFFFFF; } .buttonSmall { font-size: 10pt; }',
    button_text_top_padding: 0, 
    button_text_left_padding: 18, 
    button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT, 
    button_cursor: SWFUpload.CURSOR.HAND,
    button_action: SWFUpload.BUTTON_ACTION.SELECT_FILE,
    // Flash Settings
    flash_url : st_url + "/backend/js/SWFUpload/swfupload.swf",
    flash9_url : st_url + "/backend/js/SWFUpload/swfupload_fp9.swf",
    // Custom Settings
    custom_settings : {
        progressTarget : "divFileProgressContainer",
        input_target: 'file_url',
        player_target: 'file_target',
        progressDisplay: true
    },
    // Debug Settings
    debug: false
};